window.onload=function(){
	var cardHeight=parseInt($(".cardFont").height());
	console.log(cardHeight)
	var erWeiMa=parseInt(cardHeight*0.8);
	$(".cardBox").css({
		height:cardHeight*1.1
	})
	$(".memberData").click(function(){
		window.location.href="updateInformation.html";
	})
	$(".cardFont").click(function(){
		$(".cardFont").addClass("fontToBack");
		setTimeout(function(){
			$(".cardFont").hide();
			$(".cardBack").show();
			$(".cardBack").removeClass("fontToBack");
			$(".cardBack").css({
					transform: "rotateY(0)",
				})
			$("#cardBackDiv").css({
				height:erWeiMa,
				width:erWeiMa,
				padding:parseInt(cardHeight*0.1)
			})
		},800)
	})
	
	$(".cardBack").click(function(){
			$(".cardBack").addClass("fontToBack");
			setTimeout(function(){
				$(".cardBack").hide();
				$(".cardFont").show();
				$(".cardFont").removeClass("fontToBack");
				$(".cardFont").css({
					transform: "rotateY(0)",
				})
			},800)
		
	})
	
	$("#cardBackDiv").qrcode({
			render:"canvas",
			width:erWeiMa,
			height:erWeiMa,
			text: "201613194459,58652,245sds" //任意内容
		})
	
	
	

}

